﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200028B RID: 651
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueQueryBpScRsp : IMessage<ChessRogueQueryBpScRsp>, IMessage, IEquatable<ChessRogueQueryBpScRsp>, IDeepCloneable<ChessRogueQueryBpScRsp>, IBufferMessage
	{
		// Token: 0x1700087A RID: 2170
		// (get) Token: 0x06001D28 RID: 7464 RVA: 0x00053035 File Offset: 0x00051235
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueQueryBpScRsp> Parser
		{
			get
			{
				return ChessRogueQueryBpScRsp._parser;
			}
		}

		// Token: 0x1700087B RID: 2171
		// (get) Token: 0x06001D29 RID: 7465 RVA: 0x0005303C File Offset: 0x0005123C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueQueryBpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700087C RID: 2172
		// (get) Token: 0x06001D2A RID: 7466 RVA: 0x0005304E File Offset: 0x0005124E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueQueryBpScRsp.Descriptor;
			}
		}

		// Token: 0x06001D2B RID: 7467 RVA: 0x00053055 File Offset: 0x00051255
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryBpScRsp()
		{
		}

		// Token: 0x06001D2C RID: 7468 RVA: 0x00053060 File Offset: 0x00051260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryBpScRsp(ChessRogueQueryBpScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001D2D RID: 7469 RVA: 0x000530AC File Offset: 0x000512AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryBpScRsp Clone()
		{
			return new ChessRogueQueryBpScRsp(this);
		}

		// Token: 0x1700087D RID: 2173
		// (get) Token: 0x06001D2E RID: 7470 RVA: 0x000530B4 File Offset: 0x000512B4
		// (set) Token: 0x06001D2F RID: 7471 RVA: 0x000530BC File Offset: 0x000512BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700087E RID: 2174
		// (get) Token: 0x06001D30 RID: 7472 RVA: 0x000530C5 File Offset: 0x000512C5
		// (set) Token: 0x06001D31 RID: 7473 RVA: 0x000530CD File Offset: 0x000512CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JIIKNOGBKAF Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x06001D32 RID: 7474 RVA: 0x000530D6 File Offset: 0x000512D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueQueryBpScRsp);
		}

		// Token: 0x06001D33 RID: 7475 RVA: 0x000530E4 File Offset: 0x000512E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueQueryBpScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Info, other.Info) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001D34 RID: 7476 RVA: 0x00053134 File Offset: 0x00051334
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001D35 RID: 7477 RVA: 0x00053189 File Offset: 0x00051389
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001D36 RID: 7478 RVA: 0x00053191 File Offset: 0x00051391
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001D37 RID: 7479 RVA: 0x0005319C File Offset: 0x0005139C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.info_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Info);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001D38 RID: 7480 RVA: 0x000531F8 File Offset: 0x000513F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001D39 RID: 7481 RVA: 0x00053250 File Offset: 0x00051450
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueQueryBpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new JIIKNOGBKAF();
				}
				this.Info.MergeFrom(other.Info);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001D3A RID: 7482 RVA: 0x000532B8 File Offset: 0x000514B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001D3B RID: 7483 RVA: 0x000532C4 File Offset: 0x000514C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 106U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.info_ == null)
					{
						this.Info = new JIIKNOGBKAF();
					}
					input.ReadMessage(this.Info);
				}
			}
		}

		// Token: 0x04000C05 RID: 3077
		private static readonly MessageParser<ChessRogueQueryBpScRsp> _parser = new MessageParser<ChessRogueQueryBpScRsp>(() => new ChessRogueQueryBpScRsp());

		// Token: 0x04000C06 RID: 3078
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C07 RID: 3079
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04000C08 RID: 3080
		private uint retcode_;

		// Token: 0x04000C09 RID: 3081
		public const int InfoFieldNumber = 13;

		// Token: 0x04000C0A RID: 3082
		private JIIKNOGBKAF info_;
	}
}
